#if($type == 'uploadSuccessForEditor')
<html>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<script type="text/javascript">
parent.parent.KE.plugin["image"].insert("${id[0]}", "${baseURL}${fileURI}","${imgTitle[0]}","${imgWidth[0]}","${imgHeight[0]}","${imgBorder[0]}","${align[0]}");
</script>
</body>
</html>
#elseif($type=='uploadFailureForEditor')
<html>
<head>
<title>error</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
<script type="text/javascript">alert("${message}");</script>
</body>
</html>
#elseif($type=='uploadPhotoSuccess')
<html>
<head>
<title>success</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
<script type="text/javascript">
parent.reloadPhoto('${url.base}/$photoPath');
</script>
</body>
</html>
#elseif($type=='uploadPhotoFailure')
<html>
<head>
<title>error</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
<script type="text/javascript">alert("${message}");</script>
</body>
</html>
#end